# Contributor: Jakob Meier <comcloudway@ccw.icu>
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=g4music
pkgver=3.4
# has to be removed for 3.5
_subver=1
# had to be increased so _subver would take affect
pkgrel=1
pkgdesc="Fast fluent lightweight music player written in GTK4, with a beautiful and adaptive user interface"
url="https://gitlab.gnome.org/neithern/g4music"
arch="all"
license="GPL-3.0-only"
subpackages="$pkgname-lang"
makedepends="
	cmake
	desktop-file-utils
	gettext-dev
	gst-plugins-base-dev
	gstreamer-dev
	libadwaita-dev
	meson
	vala
	"
source="https://gitlab.gnome.org/neithern/g4music/-/archive/v$pkgver-$_subver/g4music-v$pkgver-$_subver.tar.gz"
builddir="$srcdir/g4music-v$pkgver-$_subver"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
c86a75239cd4d6c39f2dee91253f8f954e8bb623fab4571b7b86401e0990cc3aee65677accdd2bcc745c77732f4d7172b473a5952c622e53e3326591e9d7c368  g4music-v3.4-1.tar.gz
"
